package com.sgb.goods.entity;

import android.text.TextUtils;

import java.util.List;

/**
 * 描述：公共商砼属性实体类
 *
 * @author qiangHeNoo
 * <p>
 * 时间：2021.12.06
 */
public class CommonStAttrEntity {

    private String name;
    private List<ChildListBean> childList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<ChildListBean> getChildList() {
        return childList;
    }

    public void setChildList(List<ChildListBean> childList) {
        this.childList = childList;
    }

    public static class ChildListBean {
        /**
         * price :
         * name : C10
         * id : 45
         * sort : 1
         * spec :
         */
        private String price;
        private String name;
        private int id;
        private int sort;
        private String spec;
        private boolean isSelected;

        public boolean isSelected() {
            return isSelected;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public String getSpec() {
            if (!TextUtils.isEmpty(spec)) {
                return spec;
            }
            return "";
        }

        public void setSpec(String spec) {
            this.spec = spec;
        }
    }
}
